<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>面部护理方案管理</title>
	<meta name="decorator" content="default"/>
	<style type="text/css">
		#inputForm{
		margin-left:30px;
		}
 		.form-horizontal .control-label {
		  float: left;
		  width: 160px;
		  padding-top: 5px;
		  text-align: left;
		}
	 </style>
	 <script type="text/javascript">
		$(document).ready(function() {	
			var pTar = $('#datailFrame', parent.document);
			if(pTar.length > 0) {
				$('.form-actions').css('display','none');
				$('.breadcrumb').css('display','none');
			}
		});
	</script>
</head>
<body>
	<tags:breadcrumb name="breadcrumb" />
	<ul class="nav nav-tabs">
		<li class="active"><a href="#">方案详情</a></li>
		<c:if test="${fn:length(solutionFace.productList) !=0}">
			<li><a href="${ctx}/expert/solutionFaceAndProduct/listDetail?solutionId=${solutionFace.id}">对应产品</a></li>
		</c:if>
		<c:if test="${fn:length(solutionFace.careList) !=0}">
			<li><a href="${ctx}/expert/solutionFaceAndCare/listDetail?solutionId=${solutionFace.id}">护理项目</a></li>
		</c:if>	
		<c:if test="${fn:length(solutionFace.caseList) !=0 }">
			<li><a href="${ctx}/expert/solutionFaceAndCase/listDetail?solutionId=${solutionFace.id}">案例</a></li>
		</c:if>	
		<c:if test="${fn:length(solutionFace.qaList) !=0}">	
			<li><a href="${ctx}/expert/solutionFaceAndQA/listDetail?solutionId=${solutionFace.id}">常见问题</a></li>
		</c:if>	
	</ul><br/>
	<form:form id="inputForm" modelAttribute="solutionFace" action="${ctx}/expert/solutionFace/save" method="post" class="form-horizontal">
		<form:hidden path="id"/>
		<div class="form-actions">
			<a class="btn" href="${ctx}/expert/solutionFace">返 回</a>
		</div>
		<div class="control-group">
			<label class="control-label">方案名称:</label>
			<label class="detail-label">${solutionFace.name}</label>
		</div>
		<div class="control-group">
			<label class="control-label">适用区域:</label>
			<label class="detail-label">
				${solutionFace.area.name}
			</label>
		</div>
		<div class="control-group">
			<label class="control-label">适用季节:</label>
			<label class="detail-label">
				${solutionFace.season.name}
			</label>
		</div>
		<div class="control-group">
			<label class="control-label">解决客户哪些问题:</label>
			<label class="detail-label">
				${solutionFace.usage}
			</label>
		</div>
		<div>
			<label class="detail-label">方案描述:</label><br/><br/>
			<div class="detail-desc">
				${fns:unescapeHtml(solutionFace.description)}
			</div>
		</div>
	</form:form>
</body>
</html>
